package com.education.project.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.education.project.model.WebUser;

public interface WebUserMapper {
	@Select("select * from web_user where username=#{username} and password=md5(#{password})")
	WebUser login(@Param("username") String username,@Param("password") String password);
	@Update("update web_user set password=md5(#{password}) where id=#{webUserId}")
	void updatePwd(@Param("webUserId") Integer webUserId,@Param("password") String password);
}
